package com.example.base.param

/**
 * 给每一个字段一个初始化的值  这样实例化对象时，可以不用给参数
 */
data class PPreOrder(
    val attrValueId: Int = 0,
    val bargainId: Int = 0,
    val bargainUserId: Int = 0,
    val combinationId: Int = 0,
    var orderDetails: List<OrderDetail>  = emptyList(),
    val orderNo: String = "",
    val pinkId: Int = 0,
    var preOrderType: String = "",// 预下单方式   shoppingCart
    val productId: Int = 0,
    val productNum: Int = 0,
    val seckillId: Int = 0,
    val shoppingCartId: Int = 0
)

data class OrderDetail(
    val attrValueId: Int = 0,
    val bargainId: Int = 0,
    val bargainUserId: Int = 0,
    val combinationId: Int = 0,
    val orderDetails: List<Any> = emptyList(),
    val orderNo: String = "",
    val pinkId: Int = 0,
    val preOrderType: String = "",
    val productId: Int = 0,
    val productNum: Int = 0,
    val seckillId: Int = 0,
    var shoppingCartId: Int = 0  //购物车编号
)